<template>
	<view class="content">
		<u--image :showLoading="true" src="../../../static/Mine/pay_status.png" width="430rpx" height="392rpx"
			radius="0" v-if="type == 'pay_cg'"></u--image>
		<u--image :showLoading="true" src="../../../static/pay_sb.png" width="430rpx" height="392rpx"
			radius="0" v-if="type == 'pay_sb'"></u--image>	
		<text class="result_text" v-if="type == 'pay_sb'">提现失败</text>
		<text class="result_text" v-if="type == 'pay_cg'">提现成功</text>
		<text class="result_tips" v-if="type == 'pay_cg'">预计2小时内到账，请注意查收</text>
		<button :style="{'background':$store.state.buttonColor}" @click="linkUrl">返回</button>
	</view>
</template>

<script>
	export default {
		data() {
			return{
				type:''
			}
		},
		onLoad(options){
			this.type = options.type;
		},
		methods:{
			linkUrl(){
				uni.reLaunch({
					url: '/pages/Tabbar/Home/Home',
					fail(e) {
						console.log(e)
					}
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #f7f7f7;
	}
</style>
<style scoped lang="scss">
	button::after{ border: none;} 
	.content {
		/deep/ .u-image {
			display: block;
			margin: 0px auto;
			margin-top:100rpx;
		}

		.result_text {
			display: block;
			text-align: center;
			margin: 0px auto;
			font-family: PingFangSC, PingFang SC;
			font-weight: 600;
			font-size: 36rpx;
			color: #333333;
			margin-top:20rpx;
		}

		.result_tips {
			display: block;
			text-align: center;
			margin: 0px auto;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 24rpx;
			color: #888888;
			margin-top:10rpx;
			letter-spacing:2rpx;
		}
		
		button{
			width:60%;
			height:95rpx;
			margin:0px;
			border-radius:50rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;
			margin:0px auto;
			margin-top:150rpx;
		}
	}
</style>